///////////////////////////////////////////////////////////////////////////////
//
// Licensed under the MIT License
//
// Copyright (c) 2010 Chris Colinsky
// All Rights Reserved
//
// version	0.5
// http://code.google.com/p/sugarcookie/
// http://code.google.com/p/sugarcookie/wiki/License
//
////////////////////////////////////////////////////////////////////////////////

package sugarcookie.data.handlers {
	import flash.events.IEventDispatcher;
	
	/**
	 * Interface makes data source handling classes compatible with the DataManager.
	 */
	public interface IDataHandler extends IEventDispatcher {
		//following events must be dispatched:
		//
		//onDataChannelReady
		//onDataChannelError
		
		//no start-up operations allowed in the constructor
		function init() : void
		
		//must remove and nullify everything
		function kill() : void
		
		function get autoLoad():Boolean;
		function set autoLoad(value:Boolean):void;
		
		function get id():String;
		function set id(value:String):void;
	}
}